[IA64] remove a warning
authorIsaku Yamahata <yamahata@valinux.co.jp>
Mon, 29 Jun 2009 02:23:31 +0000 (11:23 +0900)
committerIsaku Yamahata <yamahata@valinux.co.jp>
Mon, 29 Jun 2009 02:23:31 +0000 (11:23 +0900)
This patch removes the following warning.
> unwind.c:40:1: warning: "write_trylock" redefined
> In file included from xen/include/xen/sched.h:7,
>                  from unwind.c:33:
> xen/include/xen/spinlock.h:115:1: warning: this is the location of the previous definition

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/linux-xen/unwind.c

index d88827fad02af222f5b2f40a7c76cbe066a03d31..7d41eb6fbbd53ddaf55cdd93938bd184001a90f2 100644 (file)
@@ -36,6 +36,9 @@
 #include <xen/errno.h>
 
 // work around
+// write_trylock() does bug check, but stack unwinder can be called
+// subtle situation, so skip bug check.
+#undef write_trylock(lock)
 #ifdef CONFIG_SMP
 #define write_trylock(lock)    _raw_write_trylock(lock)
 #else